APP上架被拒日常(4)- 私有API - Software Requirements

原文:

Your app uses the “prefs:root=” non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change
Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store
Next Steps
To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the “prefs:root” or “App-Prefs:root” URL scheme.
If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

译文:

您的应用程序使用“prefs:root=”非公开URL组合,这是一个私有API。应用商店不允许使用非公有api,因为如果这些api发生变化,会导致糟糕的用户体验
继续使用或隐藏私有API,在以后提交这个应用程序时,可能会导致你的苹果开发者账户被终止,并从应用商店中删除所有相关的应用
下一个步骤
要解决这个问题,请修改应用程序,使用公共api提供相关功能,或者删除使用“prefs:root”或“app - prefs:root”私有API相关功能。
如果没有提供应用程序所需功能的替代方案,您可以提交增强请求。

解决方案:

1)全局搜索项目中”prefs:root”关键词字眼,并将搜索到的结果分情况删除或者注释掉或者寻找替代方法;此外如果不放心私有API问题,可以查找项目中是否存在其他私有API,如有删除掉即可.
此方法推荐!!!
2)如果通过方法1)解决了私有API的问题,但是应用内相关功能却无法实现了,就给苹果提交请求,增加新的公有API!不过此方法漫长不一定能解决问题